You can use fields and sections to hide or display text in your document if a condition is met.
フィールドやセクションを使用すると、指定条件への一致状況に応じて、ドキュメント上のテキストの非表示と表示を切り換えることができます。
Before you can hide text, you must first create a variable to use in the condition for hiding the text.
テキストを非表示にするには、最初に条件判定用の変数を作成しておく必要があります。
Click in your document and choose Insert - Fields - Other.
ドキュメント上でカーソルを移動して、メニュー 挿入 → フィールド → その他 を選択します。
Click the Variables tab and click "Set Variable" in the Type list.
「変数」タブをクリックして、「フィールドタイプ」リストの「変数の設定」をクリックします。
Click "General" in the Format list.
「書式」リストで「Standard」をクリックします。
Type a name for the variable in the box, for example, Hide.
ボックスに変数の名前を入力します。たとえば、Hide です。
Enter a value for the variable in the box, for example, 1.
ボックスに変数の値を入力します。たとえば、1 です。
To hide the variable in your document, select Invisible.
ドキュメント上で変数を非表示にするには、非表示 をオンにします。
Click and .
挿入 をクリックして、閉じる をクリックします。とをクリックします。
Click in the document where you want to add the text.
ドキュメント上で、テキストを追加する位置にカーソルを移動します。
Choose Insert - Fields - Other and click the Functions tab.
メニュー 挿入 → フィールド → その他 を選択して、機能 タブをクリックします。
Click "Hidden Text" in the Type list.
「フィールドタイプ」で、「隠しテキスト」をクリックします。
Enter a statement in the box. For example, using the variable you previously defined, enter Hide==1.
に条件式を入力します。たとえば、先に定義した変数を使うなら Hide==1 となります。
Type the text that you want to hide in the Hidden text box.
ボックス 隠しテキスト に、非表示とするテキストを入力します。
Click and .
挿入 をクリックして、閉じる をクリックします。とをクリックします。
Click in the paragraph where you want to add the text.
テキストを追加する段落内をクリックします。
Choose Insert - Fields - Other and click the Functions tab.
メニュー 挿入 → フィールド → その他 を選択して、機能 タブをクリックします。
Click "Hidden Paragraph" in the Type list.
「フィールドタイプ」リストで、「隠し段落」をクリックします。
Enter a statement in the box. For example, using the variable you previously defined, enter Hide==1.
ボックスに条件式を入力します。たとえば、先に定義した変数を使うなら Hide==1 となります。
Click and .
挿入 をクリックして、閉じる をクリックします。とをクリックします。
![]() | You must enable this feature by removing the check mark from menu View - Hidden Paragraphs. When the check mark is set, you cannot hide any paragraph.
この機能を有効にするには、メニュー 表示 → 隠し段落 からチェックマークを削除する必要があります。 チェックマークが付いていると、どの段落も隠すことができません。 |
Select the text that you want to hide in your document.
ドキュメント上で、非表示とするテキストを選択します。
Choose Insert - Section.
メニュー 挿入 → セクション を選択します。
In the area, select , and then enter an expression in the box. For example, using the variable you previously defined, enter Hide==1.
領域で、を選択し、ボックスに条件式を入力します。たとえば、先に定義した変数を使うなら Hide==1 となります。
Click .
をクリックします。